﻿using System;
class ReverseWordsInSentense
{
    static void Main()
    {
        string sentance = "C# is not C++, not PHP and not Delphi!";
        string[] words = sentance.Split(new char[] {' ',','},StringSplitOptions.RemoveEmptyEntries);
        string reverse = string.Empty;
        Console.WriteLine(sentance);
        for (int i = 0; i < words.Length; i++)
        {
            reverse = reverse + words[words.Length - i - 1]+" ";
        }
        Console.WriteLine(reverse);
        Console.ReadLine();
    }
}

